﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AmuTools;

namespace app.Models
{
    [Model(TableName = "t_message", PrimaryKey = "id", IdentityInsert = false, BaseID = "11000")]
    public class MemberMessage
    {
        [Field(Description = "消息唯一标识")]
        public int id { get; set; }
        [Field(Description = "用户id")]
        public int user_id { get; set; }
        [Field(Description = "发送者id")]
        public int sender_id { get; set; }
        [Field(Description = "消息类型：0系统消息，1邮件，2短信")]
        public int m_type { get; set; } // 0系统消息，1邮件，2短信
        [Field(Description = "消息状态：0未读，1已读，2已回收，9发送失败")]
        public int status { get; set; } // 0未读，1已读，2已回收，9发送失败
        [Field(Description = "消息标题")]
        public string title { get; set; }
        [Field(DataType = "char(13)",Description = "创建时间")]
        public string create_time { get; set; }

        [Field(DataType = "text", Description = "消息内容")]
        public string content { get; set; }
    }
}